home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- set the visible of sprite 27 to 1
- updateStage()
- wait(10)
- repeat while the stillDown
- end repeat
- set the visible of sprite 27 to 0
- updateStage()
- end
-
- on mouseUp
- global numnickel, numdime, answer, nickel, nickelCount, dimeCount, loopCounter
- if (answer <> EMPTY) and (answer <> "one") then
- set answer to EMPTY
- puppetSound("buzz")
- updateStage()
- wait(30)
- puppetSound(0)
- getnext()
- wait(30)
- go(the frame)
- end if
- if answer = "one" then
- set answer to EMPTY
- if nickel = 1 then
- set numnickel to numnickel + 1
- delete line nickelCount of field "nickel"
- else
- set numdime to numdime + 1
- delete line dimeCount of field "dime"
- end if
- puppetSound("Bluup.S")
- updateStage()
- wait(10)
- puppetSound(0)
- getnext()
- wait(30)
- set loopCounter to loopCounter + 1
- if loopCounter = 5 then
- go("win")
- else
- go(the frame)
- end if
- end if
- end
-